/**
 * ===========================================================================
 * 版权所有 湖南免了么网络科技有限公司，并保留所有权利。
 * 网站地址: http://www.mianle.me
 * ===========================================================================
 * 15:48 2018/6/26
 */
package com.mianle.userapi.service.task05;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @Author: yiyuan
 * @Description:
 * @Date: Created in 15:48 2018/6/26
 *
 */
@Component
public class InIt implements CommandLineRunner{

    @Autowired
    private TaskConfig taskConfig;

    @Override
    public void run(String... strings) throws Exception {
        final String cron = "0/20 * * * * ?";
        taskConfig.start(cron);
    }
}
